<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>信箱交流</title>
    <link type="text/css" href="css/base.css" rel="stylesheet" />
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/menu.js"></script>
    <script type="text/javascript">
        function topage(page) {
            var form = document.getElementById("myform");
            document.getElementById("page")
                    .setAttribute("value", page);
            form.submit();
        }
        function actionEvent() {
            var form = document.getElementById("myform");
            form.action = "/page/mailboxManagement/sendMail.jsp";
            form.submit();
        }
    </script>
    <!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>

<body>
<%@ include file="/page/share/menu.jsp" %>

<div id="content">
    <form method="post" action="Mailbox!mailList.action" align="center" id="myform">
        <input type="hidden" name="page" value="1" id="page"/>
        <table align="center"
               style="margin: 40px auto 20px;background: #114a93;opacity:0.9;font-family: '微软雅黑',serif;color: linen;width:
    800px;text-align: center">
            <thead align="center">
            <tr>
                <td>主&nbsp;题</td>
                <td>提问时间</td>
                <td>回答时间</td>
            </tr>
            </thead>
            <s:iterator value="pageView.records" var="s">
                <tr>
                    <td><a href="Mailbox!showMail.action?id=${s.id}">${s.title}</a></td>
                    <td><fmt:formatDate value="${s.publishDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                    <td><fmt:formatDate value="${s.replyDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                </tr>
            </s:iterator>
        </table>
        <input align="center" type="button" name="review" onclick="actionEvent()" value="我要提问"
        onMouseOver="this.style.background='#2569c1'"
        onmouseout="this.style.background='#114a93'"
        style="width:120px;height:30px;margin:6px 0 0 600px ;cursor:pointer;border: none;
        background: #114a93;color: white;font-size: 16px;">
        <table align="center" style="font-family: '微软雅黑',serif;text-align: center">
            <tr>
                <td colspan="4" bgcolor="#114a93" align="center" style="padding-right: 10px;width:600px;height: 20px;">
                    <%@ include file="/page/share/fenye.jsp" %>
                </td>
            </tr>
        </table>
    </form>
</div>


<div id="footer">
    <p style="text-align: center;color: #757575;padding: 20px 0px 0px 0px; font:12px;">Copyright © 2010-2013 蓝天白云团队 版权所有</p>
</div>
</body>
</html>